<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDItinerary/MDItineraryEditDraw.php");

include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/star.php");

$idTourTrack=$_GET['codigo'];

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"g","Ver paquetes"=>"g","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();


$action="CRegistroTrack.php";$name="formulario_registro";$method="post";$NAME="Itinerario";
MDItineraryEditDraw::getInstance()->DrawHead($action,$name,$method,$NAME);

CTourEditDraw::getInstance()->HiddenValue($idTourTrack,"idTourTrack");
	

$items = array("DateBegTrack"=>"Inicio","DateEndTrack"=>"Fin");
MDItineraryEditDraw::getInstance()->DrawTextFillBox("Itinerario de $idTourTrack",$items, "tour_has_track", $idTourTrack );



//("OriTrack"=>"Origen","IntTrack"=>"Intermedio","DestTrack"=>"Destino");
$track_name = array("idTrack"=>"idTrack","DescTrack"=>"DescTrack");
CDrawPageReg::getInstance()->DrawSelect("track",$track_name,"Track","idTrack");

$guialocal = array("idGuide"=>"idGuide","FirstNamGui"=>"FirstNamGui","LastNamGui"=>"LastNamGui");
CDrawPageReg::getInstance()->DrawSelect("guidetc",$guialocal,"Guia Local","idGuide");


//MDItineraryEditDraw::getInstance()->DrawSelect()





MDItineraryEditDraw::getInstance()->DrawSubmmit("Actualizar");

?>





	<script>
	$(function() {
		$( "#datepicker" ).datepicker({ minDate: new Date (2011,12,4)});
        
	});
	</script>



<div class="demo">

<p>Date: <input type="text" id="datepicker"></p>

</div><!-- End demo -->



<?php

$boundaries = array("Desde","Hasta");
CDrawPageReg::getInstance()->DateFromTo($boundaries);
MDItineraryEditDraw::getInstance()->DrawFoot(); 

include_once("$ruta/elements/foot.tpl");


?>
